//
//  WKThreeViewController.m
//  WKDemo
//
//  Created by wangzhaohui-Mac on 14-7-31.
//  Copyright (c) 2014年 com.app. All rights reserved.
//

#import "WKThreeViewController.h"
#import "WKThreeEliteViewController.h"
#import "WKTherrNewestViewController.h"
#import "WKTherrThroughViewController.h"

@interface WKThreeViewController ()
@property (nonatomic,strong) WKThreeEliteViewController *eliteVc;
@property (nonatomic,strong) WKTherrNewestViewController *newestVc;
@property (nonatomic,strong) WKTherrThroughViewController *throughVc;
@end

@implementation WKThreeViewController


- (void)viewDidLoad
{
    [super viewDidLoad];
    
//    self.tableView.backgroundColor = WKRandomColor;
    [self addSubView];
}

/**
 *  刷新
 */
- (void)rightRefresh
{
    WKLog(@"rightRefresh--->>WKThreeViewController");
    
}

- (void)addSubView
{
    //精华
    WKThreeEliteViewController *eliteVC = [[WKThreeEliteViewController alloc] init];
    eliteVC.tableView.frame = CGRectMake(0, 0, 320, 372);
    self.eliteVc = eliteVC;
//    self.eliteTableView = eliteVC.tableView;
    [self.scrollView addSubview:eliteVC.tableView];
    
    
    //最新
    WKTherrNewestViewController *newVC = [[WKTherrNewestViewController alloc] init];
    newVC.tableView.frame = CGRectMake(320, 0, 320, 372);
    self.newestVc = newVC;
//    self.newtableView = newVC.tableView;
    [self.scrollView addSubview:newVC.tableView];
    
    
    //穿越
    WKTherrThroughViewController *throughVC = [[WKTherrThroughViewController alloc] init];
    throughVC.tableView.frame = CGRectMake(640, 0, 320, 372);
    self.throughVc = throughVC;
//    self.throughTableView = throughVC.tableView;
    [self.scrollView addSubview:throughVC.tableView];
    
    
}

@end
